package models;

import java.util.*;

import javax.persistence.*;

import play.db.jpa.*;

@Entity
public class ActionItem extends Model {
	@Lob
	String description;
	double status;
	Date startDate;
	Date endDate;
	@ManyToOne
	Plan plan;
	@ManyToMany
	List<User> users;
	@ManyToMany
	List<Tag> tags;

	public ActionItem(String description, double status, Plan plan,
			Date startDate, Date endDate) {
		this.description = description;
		this.status = status;
		this.plan = plan;
		this.startDate = startDate;
		this.endDate = endDate;
		users = new ArrayList<User>();
		tags = new ArrayList<Tag>();
	}
}
